# name = raw_input("What is your name?")
# if name.endswith("haha"):
# 	print "hello Mr haha"
# else:
# 	print "hello stranger"


# num = input("Enter a number: ");
# if num > 0:
# 	print "The number is positive"
# elif num < 0:
# 	print "The nubmer is negative"
# else:
# 	print "The nubmer is zero"


name = raw_input("What is your name?")
if name.endswith("haha"):
	if name.startswith("Mr"):
		print "Mr "
	elif name.startswith("Mrs"):
		print "Mrs"
	else:
		print "haha"
else:
	print "hello stranger"